/**
 路由级代码拆分
 这会为此路由生成一个单独的块（约。[hash] .js）
 在访问路线时会被延迟加载。
 */
export default  {
    path: '/page',
    name: 'Page',
    component: () => import("../../views/Page.vue"),
    meta: { transition: 'slide-right' },
    redirect: () => {
        // 方法接收目标路由作为参数
        // return 重定向的字符串路径/路径对象
        return { path: '/page/all'}
    },
    children:[
        {
            path: 'all',
            name: 'All',
            component: ()=> import("../../components/details.vue"),
            meta: { transition: 'slide-right' },
        },
        {
            path: 'html',
            name: 'Html',
            component: ()=> import("../../components/details.vue"),
            meta: { transition: 'slide-right' },
        },
        {
            path: 'css',
            name: 'Css',
            component: ()=> import("../../components/details.vue"),
            meta: { transition: 'slide-right' },
        },
        {
            path: 'js',
            name: 'Js',
            component: ()=> import("../../components/details.vue"),
            meta: { transition: 'slide-right' },
        },
        {
            path: 'jq',
            name: 'Jq',
            component: ()=> import("../../components/details.vue"),
            meta: { transition: 'slide-right' },
        }
    ]
}
